home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / misc.558 < prev    next >
Text File  |  1992-02-06  |  1KB  |  39 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;\f1\fswiss Helvetica;}
  2. \paperw11760
  3. \paperh7200
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 otool corefile \
  8. \
  9. Q:  Now that all core files are dropped in /cores (as of release 2.0), how do I tell what application dropped a particular one?\
  10. \
  11. A:  It's really easy — use 
  12. \i otool -c <corefile>
  13. \i0 .  It prints out the argv[] and envp[] that are on the stack.  Once in a while, it doesn't work and doesn't print anything.  \
  14. \
  15.  
  16. \f2\fs24     % otool -c /cores/core.123\
  17.  
  18. \fc0     Argument strings on the stack at: 0x4000000\
  19.         ./testprogram\
  20.         HOME=/Net/mymachine/someone\
  21.         SHELL=/bin/csh\
  22.         TERM=vt100\
  23.         USER=someone\
  24.         PATH=.:/usr/ucb:/bin:/usr/bin:/LocalApps:/NextApps:/usr/local/bin\
  25.         Workspace=Workspace$1890247798\
  26.         VISUAL=/usr/ucb/vi\
  27.     %\
  28.  
  29. \f0\fs28 \
  30. The core file also will have an extension that was the process number for the program when it was running.  But that isn't all that helpful.
  31. \f2\fs24 \
  32.  
  33. \f0\fs28 \
  34. QA558\
  35. \
  36. Valid for 2.0\
  37. \
  38.  
  39.